package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class SpecificTypeMethod implements StringValueFunction {

    private int beginIndex;
    private int endIndex;
    private ValueExpressionPrimary userDefinedTypeValueExpression;

    public SpecificTypeMethod(int endIndex, ValueExpressionPrimary userDefinedTypeValueExpression) {
        this.beginIndex = userDefinedTypeValueExpression.getBeginIndex();
        this.endIndex = endIndex;
        this.userDefinedTypeValueExpression = userDefinedTypeValueExpression;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public ValueExpressionPrimary getUserDefinedTypeValueExpression() {
        return userDefinedTypeValueExpression;
    }

}
